export interface GenericResponseBody<T> {
  code: number;
  msg: string;
  exception: string;
  traceId: string;
  data: T;
}

export namespace Login {
  export interface ReqLoginForm {
    serial: string;
    password: string;
  }

  export interface UserState {
    mapToken: string;
    userInfo: { serial: string; name: string };
  }
}

export namespace UserMap {
  export interface EquipmentMapVo {
    id: number;
    mapName: string;
    companyid: number;
    equipmentid: number;
    serial: string;
    createtime: number;
    filenum: number;
    floornum: number;
    disable: number;
    mapCode: string;
    updatetime: number;
    md5: string;
    useStatus: number;
    url: string;
    downloadUrl: string;
    downloadOriginUrl: string;
  }

  export interface EquipmentMapReplaceVo {
    id: number;
    url: string;
  }
}
